﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace AIVision.Repository.Migrations
{
    public partial class init26 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "InpsectionRecords",
                columns: table => new
                {
                    Id = table.Column<int>(type: "INTEGER", nullable: false)
                        .Annotation("Sqlite:Autoincrement", true),
                    OkQty = table.Column<int>(type: "INTEGER", nullable: false),
                    NgQty = table.Column<int>(type: "INTEGER", nullable: false),
                    AllQty = table.Column<int>(type: "INTEGER", nullable: false),
                    OkRate = table.Column<int>(type: "INTEGER", nullable: false),
                    FangLiaoQty = table.Column<int>(type: "INTEGER", nullable: false),
                    XuanZhuanQty = table.Column<int>(type: "INTEGER", nullable: false),
                    ChaHeQty = table.Column<int>(type: "INTEGER", nullable: false),
                    FeiLiaoQty = table.Column<int>(type: "INTEGER", nullable: false),
                    ChuFaPaiZhaoQty = table.Column<int>(type: "INTEGER", nullable: false),
                    ZhiXingPaiZhaoQty = table.Column<int>(type: "INTEGER", nullable: false),
                    PaiZhaoCalcQty = table.Column<int>(type: "INTEGER", nullable: false),
                    StartTime = table.Column<DateTime>(type: "TEXT", nullable: false),
                    EndTime = table.Column<DateTime>(type: "TEXT", nullable: false),
                    Duration = table.Column<int>(type: "INTEGER", nullable: false),
                    AvgSpeed = table.Column<decimal>(type: "TEXT", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_InpsectionRecords", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "InpsectionRecords");
        }
    }
}
